﻿using System;
using ilgolosone.Shared.Domain;

namespace ilgolosone.DomainModel.Entities
{
    [Serializable]
    public class Dish : EntityBase
    {
        public virtual string Name { get; set; }
        public virtual DishCategory Category { get; set; }
        public virtual Specialty Specialty { get; set; }
        public virtual Restaurant Restaurant { get; set; }
        public virtual string Ingredients { get; set; }
        public virtual decimal Price { get; set; }

        public Dish() 
            : this(string.Empty)
        { }

        public Dish(string name)
        {
            Name = name;
            Ingredients = string.Empty;
            Price = 0.0M;
        }

        public Dish(string name, DishCategory category, Specialty specialty, Restaurant restaurant, string ingredients, decimal price)
        { 
            Name = name;
            Category = category;
            Specialty = specialty;
            Restaurant = restaurant;
            Ingredients = ingredients;
            Price = price;
        }

        public override string ToString()
        {
            return Name;
        }
    }
}
